home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / gawk / cawf2st.zoo / regerror.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-04-12  |  288 b   |  17 lines

  1. #include <stdio.h>
  2.  
  3. void
  4. regerror(s)
  5. char *s;
  6. {
  7. #ifndef DOSPORT
  8. #ifdef ERRAVAIL
  9.         error("regexp: %s", s);
  10. #else
  11.         fprintf(stderr, "regexp(3): %s", s);
  12.         exit(1);
  13. #endif
  14.         /* NOTREACHED */
  15. #endif /* ifdef'd out for less's sake when reporting error inside less */
  16. }
  17.